﻿#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable : 6031)
#include "sl.h"

void test1()
{
	sl* list = NULL;
	pushback(&list, 4);
	pushfront(&list, 3);
	pushfront(&list, 2);
	pushfront(&list, 1);
	pushfront(&list, 0);

	sl* p = findsl(list, 2);
	if (p)
	{
		eraseafter(p);
	}

	printsl(list);
}

int main()
{
	test1();
	return 0;
}
